
using System.Linq;

namespace Domain
{
    partial class RepositoryDataContext
    {
        public virtual Profile GetProfile(string username,string password)
        {
            return this.Profiles.Where(x => x.Username == username && x.Password == password).FirstOrDefault();
        }

        public virtual Account GetAccount(string title, Profile profile)
        {
            return this.Accounts.Where(x => x.Title == title && x.Profile == profile).FirstOrDefault();
        }
    }
}
